package org.example.design.visitor.test2;

/**
 * @author huangshen
 * @version 0
 * @description SpringTravelVisitor
 * @since 2022/2/10 9:59
 */
public class SpringTravelVisitor extends StuVisitor {
    /**
     * 访问学霸
     *
     * @param x
     */
    @Override
    void visit(XueBa x) {
        System.out.println(x.getType() + "对春游无感");
    }

    /**
     * 访问学渣
     *
     * @param x
     */
    @Override
    void visit(XueZha x) {
        System.out.println(x.getType() + "喜欢春游");
    }
}
